

import Post from "./Post"
import { PaginationTable } from "@xuekl/cli-core/builder"
import { Selection, Index, Operation } from "@xuekl/cli-core/helper"
import { TableSelection, TableIndex, TableColumn, TableOperation } from "@xuekl/cli-core/types"

export default class PostTable extends PaginationTable<Post> implements Selection<Post>, Index, Operation {
    operation: TableOperation = {
        label: '操作',
        width: 100
    }
    index: TableIndex = {
        width: 60,
        label: '序号'
    }
    selection: TableSelection = {}
    selectedData: Post[] = []
    columns: TableColumn<Post>[] = [
        {
            prop: 'postName',
            label: '岗位名称'
        },
        {
            prop: 'postCode',
            label: '岗位编码'
        },
        {
            prop: 'postSort',
            label: '岗位顺序'
        },
        {
            prop: 'status',
            label: '岗位状态'
        },
        {
            prop: 'remark',
            label: '备注'
        },
    ]
}